package com.dtf.admin.manage.job;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.dtf.admin.common.utils.ListUtils;

/**
 * 可将此类直接复制，然后开始写业务代码
 * @author fei
 *
 */
@DisallowConcurrentExecution //标示不允许定时任务并行执行,如果要定时任务可以并行执行把注解去掉
public class TestJob implements Job {
	
	private static Log log = LogFactory.getLog(ListUtils.class);
	
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		//直接在这里写业务代码
		log.info("定时任务"+this.getClass().getName()+"跑起来啦");
	}

}
